import React, {Component} from 'react';

/**
 * 由 WangYu 创建
 * 日期 2017/9/15
 */
export default class Api extends Component {
    static isLogin = false;//标记当前是否登录
    static userInfo = null;//静态存贮用户信息
    static stepArr = [];
    constructor(props) {
        super(props);
    }

    static SERVER_URL = 'http://47.92.11.185/app/v1';
    //测试服务器
    // static SERVER_URL = "http://office01.youdaikeji.com/app/v1";
    // static SERVER_URL = "http://192.168.31.178:8082/app/v1";
    /**
     * 首页轮播图
     */
    static homebanner = Api.SERVER_URL + "/anon/banner/list";
    /**
     * 首页利率信息
     */
    static rate = Api.SERVER_URL + "/anon/index/index";

    /**
     * 登录
     */
    static  login = Api.SERVER_URL + "/anon/login";
    /**
     * 重新登录
     */
    static reLogin = Api.SERVER_URL + "/auth/account/reLogin";
    /**
     * 获取图片验证码
     */
    static getImage = Api.SERVER_URL + "/anon/getImage";
    /**
     * 发送短信验证码
     */
    static sendMobileCode = Api.SERVER_URL + "/anon/validateRegisterMobile";
    /**
     * 注册
     */
    static register = Api.SERVER_URL + "/anon/register";
    /**
     * 退出登录
     */
    static  logout = Api.SERVER_URL + "/auth/logout";
    /**
     * 我的
     */
    static  mine = Api.SERVER_URL + "/auth/borrowRepayRecord/index";
    /**
     * 消息列表
     */
    static messagelist = Api.SERVER_URL + "/anon/message/list";
    /**
     * 帮助中心静态页面
     */
     static help =Api.SERVER_URL+ "/anon/help/list";
    /**
     * 意见反馈
     */
     static feedback = Api.SERVER_URL + "/auth/feedback/details";
    /**
     * 关于我们
     */
     static  about = Api.SERVER_URL + "/anon/about/youdaikeji/";
    /**
     * 获取授权步骤
     */
     static  getStep =Api. SERVER_URL + "/auth/account/index";

}
